<%@page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html lang="en">  
<head>  
    <meta charset="UTF-8">  
    <title>Login</title>  
    <link rel="stylesheet" type="text/css" href="../css/login.css"/>  
</head>  
<body>  
<%
if("fail".equals((String)session.getAttribute("loginSuccess"))){
	out.print("<script>alert('登录失败！')</script>");
	session.removeAttribute("loginSuccess");
}
%>
    <div id="login">  
        <h1>Login</h1>  
        <form method="post" action="/News/Login">
            <input type="text" required="required" placeholder="用户名" name="u"></input>  
            <input type="password" required="required" placeholder="密码" name="p"></input>  
            <button class="but" type="submit">登录</button>
        </form>  
    </div>
    <div id="login1"><h1>新闻管理系统</h1></div>
</body>  
</html>